package com.cosc716.restaurant.commands.customers;

import com.cosc716.restaurant.commands.Command;
import com.cosc716.restaurant.domain.collections.OrderQueue;
import com.cosc716.restaurant.domain.collections.WaitingQueue;
import com.cosc716.restaurant.system.Aggregator;

public class CommandClearWaitingQueue implements Command {

	@Override
	public Object execute(Aggregator aggregator) {
		
		WaitingQueue queue =  aggregator.getWaitingQueue();
		queue.clearCustomers();
		
		return null;
	}

}
